#include <stdio.h>
#include <conio.h>

int main(){
    int i[]={100,200,300,400,500};
    int *ptr = i+2;
    int k;

    for(k=0;k<5;k++){
        printf("ptr[%d]=%d\n",k-2,ptr[k-2]);
    }
    printf("\n");

    ptr++;
    printf("执行ptr++...\n");
    printf("ptr[0]=%d\n",ptr[0]);
    printf("*(ptr+0)=%d\n",*(ptr+0));
    printf("ptr[1]=%d\n",ptr[1]);
    printf("*(ptr+1)=%d\n",*(ptr+1));

    getch();
    return 0;
}